package com.zkt.subject.application.convert;

import com.zkt.subject.entity.SubjectAnswerDTO;
import com.zkt.subject.infra.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2024/10/5
 * @description 题目答案的实体类型转换器
 **/

@Mapper
public interface SubjectAnswerDTOConverter {
	
	SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);
	
	SubjectAnswerBO convertDtoToBo(SubjectAnswerDTO subjectAnswerDTO);
	
	List<SubjectAnswerBO> convertDtoToBo(List<SubjectAnswerDTO> subjectAnswerDTOList);
	
	
	List<SubjectAnswerDTO> convertBoToDto(List<SubjectAnswerBO> subjectAnswerBOList);
}
